import { Character } from "./Character"

export interface AuraDataSet {
  name: string
  buffs: number[]
  condition: (sub, obj, para, env) => boolean
  description: string
  range: {
    condition: (sub, obj, para, env) => boolean
    pos: ('this' | 'enemy')[]
  }
}


export interface AuraData {
  id: string
  aura_id:number
  character_id: string
  caster_id: string
  host_id: string
  custom_num?: number
}

export interface Aura extends AuraDataSet {
  id: string
  aura_id: string
  card_id : string
  character_id: string
  caster_id: string
  host_id: string
  tars: Record<string, Character>
  custom_num:number
}